import Layout from '@/layout'

export default [
  {
    path: '/permissSet',
    component: Layout,
    redirect: "/permissSet/departPermiss",
    meta: {title: '权限设置', icon: 'example'},
    children: [
      {
        path: 'departPermiss',
        redirect: "/permissSet/departPermiss/index",
        component: () => import('@/views/permissSet/departPermiss/Index'),
        meta: {title: '部门权限', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/permissSet/departPermiss/List'),
            hidden: true,
          },
          {
            path: 'choose',
            component: () => import('@/views/permissSet/departPermiss/Choose'),
            meta: {title: '选择'},
            hidden: true,
          },
        ]
      },
      {
        path: 'empPermiss',
        redirect: "/permissSet/empPermiss/index",
        component: () => import('@/views/permissSet/empPermiss/Index'),
        meta: {title: '员工权限', icon: 'table'},
        children: [
          {
            path: 'index',
            component: () => import('@/views/permissSet/empPermiss/List'),
            hidden: true,
          },
          {
            path: 'choose',
            component: () => import('@/views/permissSet/empPermiss/Choose'),
            meta: {title: '选择'},
            hidden: true,
          },
        ]
      },
    ]
  },
]
